var str = require('../templates/index.string')
var list = require('../templates/position.string')
var position = require('./modules/position')
var $ = require('./libs/zepto')

window.onload = function () {
  $('body').prepend(str)
  $('.m-index section').html(list)

  position.renderTpl(function (data) {
    $('.m-index section .list').html(data)
    position.doScroll()
  })

}
